<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="static/css/bootstrap.min.css" rel="stylesheet" />
		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<!-- 下拉框 -->
		<link rel="stylesheet" href="static/css/chosen.css" />
		
		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />
		
		<link rel="stylesheet" href="static/css/bootstrap-datetimepicker.css" /><!-- 日期框 -->
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		
	</head>
<body>
	<form action="reservation/${msg}.do" name="Form" id="Form" method="post">
		<input type="hidden" name="reservation_id" id="reservation_id" value="${pd.reservation_id}"/>
		<div id="zhongxin">
		<table id="table_report" class="table table-striped table-bordered table-hover">
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">申请人:</td>
				<td><input style="width: 400px;" type="text" name="applicant" id="applicant" value="${pd.applicant}" maxlength="32" placeholder="这里输入" title=""/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">申请部门:</td>
				<td><input style="width: 400px;" type="text" name="apply_department" id="apply_department" value="暂无部门" maxlength="32" placeholder="这里输入" title=""/></td>
			</tr>
			<tr class="info" height="40">
				<td align="right">申请会议室:</td>
				<td>
				<select style="width: 415px;" class="chzn-select" name="meetingRoom_id" id="meetingRoom_id" style="vertical-align:top;">
				<option value="">请选择会议室</option>
				<c:forEach items="${varList}" var="var">
					<option value="${var.mr_id}" <c:if test="${var.mr_id eq pd.meetingRoom_id}">selected="selected"</c:if>>${var.mr_name}</option>
				</c:forEach>
				</select>
				</td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">会议名称:</td>
				<td><input style="width: 400px;" type="text" name="meeting_title" id="meeting_title" value="${pd.meeting_title}" maxlength="100" placeholder="这里输入" title=""/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">会议主题:</td>
				<td><input style="width: 400px;" type="text" name="meeting_topic" id="meeting_topic" value="${pd.meeting_topic}" maxlength="100" placeholder="这里输入" title=""/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">会议类型:</td>
				<td>
				<select style="width: 415px;"  class="chzn-select" name="meeting_type" id="meeting_type"  data-placeholder="请选择" style="vertical-align:top;width: 320px;">
							<option value="">请选择会议类型</option>
							<option value="0" <c:if test="${pd.meeting_type==0}" >selected="selected" </c:if>>销售部会议</option>
							<option value="1" <c:if test="${pd.meeting_type==1}" >selected="selected" </c:if>>财务部会议</option>
							<option value="2" <c:if test="${pd.meeting_type==2}" >selected="selected" </c:if>>采购部会议</option>
							<option value="2" <c:if test="${pd.meeting_type==3}" >selected="selected" </c:if>>总经办会议</option>
				</select>
				</td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">预计人数:</td>
				<td>
				<input style="width: 400px;" type="text" name="expected_number" id="expected_number" value="${pd.expected_number}" maxlength="3" placeholder="这里输入" title=""/>
				</td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">开始时间:</td>
			    <td><input size="16" type="text" name="s_time" id="s_time" value="${pd.s_time}" readonly class="form_datetime">
			    </td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">结束时间:</td>
			    <td><input size="16" type="text" name="e_time" id="e_time" value="${pd.e_time}" readonly class="form_datetime"></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">优先级:</td>
				<td>
				<select  name="priority" id="priority"  data-placeholder="请选择" style="vertical-align:top;width: 400px;">
							<option value="0" <c:if test="${pd.priority==0}" >selected="selected" </c:if>>低</option>
							<option value="1" <c:if test="${pd.priority==1}" >selected="selected" </c:if>>中</option>
							<option value="2" <c:if test="${pd.priority==2}" >selected="selected" </c:if>>高</option>
				</select>
				</td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">使用事由:</td>
				<td><textarea style="width:400px;" name="use_reason" id="use_reason"  maxlength="32" placeholder="这里输入" title="" >${pd.use_reason}</textarea></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">备注:</td>
				<td><textarea style="width:400px;" name="remark" id="remark"  maxlength="32" placeholder="这里输入" title="">${pd.remark}</textarea></td>
			</tr>
			<tr class="upload">
				<td style="width:70px;text-align: right;padding-top: 13px;">会议纪要:</td>
				<td>
					<a id="meeting_minutes_path"><span  id="meeting_minutes_name">${pd.meeting_minutes_name}</span></a>
				</td>
			</tr>
			<tr>
				<td style="text-align: center;" colspan="10">
					<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
				</td>
			</tr>
		</table>
		</div>
		
		<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
		
	</form>
	
	
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>
		<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script><!-- 下拉框 -->
		<script type="text/javascript" src="static/js/bootstrap-datetimepicker.js"></script><!-- 日期框 -->
		<script type="text/javascript">
		$(top.hangge());
		$(function() {
			
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			//日期框
			$(".form_datetime").datetimepicker( {
                autoclose:true,
                format: "yyyy-mm-dd hh:ii",
                language: 'cn',
                clearBtn:true,
                todayHighlight: true
            });
			//日期框
			$(".form_datetime").datetimepicker({format: 'yyyy-mm-dd hh:ii',autoclose: true});
			
		});
		
		
		if($("#meeting_minutes_name").val()=="" || $("#meeting_minutes_name").val()==null){
			 $('.upload').hide();
		}else{
			$('#meeting_minutes_path').attr('href',http+'${pd.meeting_minutes_name}');
		}
		
		</script>
		
</body>
</html>